import request from '@/utils/request'

// 查询养殖户信息登录列表
export function listRegistration(query) {
  return request({
    url: '/dgw/registration/list',
    method: 'get',
    params: query
  })
}

// 查询养殖户信息登录详细
export function getRegistration(id) {
  return request({
    url: '/dgw/registration/' + id,
    method: 'get'
  })
}

// 新增养殖户信息登录
export function addRegistration(data) {
  return request({
    url: '/dgw/registration',
    method: 'post',
    data: data
  })
}

// 修改养殖户信息登录
export function updateRegistration(data) {
  return request({
    url: '/dgw/registration',
    method: 'put',
    data: data
  })
}

// 删除养殖户信息登录
export function delRegistration(id) {
  return request({
    url: '/dgw/registration/' + id,
    method: 'delete'
  })
}

// 导出养殖户信息登录
export function exportRegistration(query) {
  return request({
    url: '/dgw/registration/export',
    method: 'get',
    params: query
  })
}

// 下载用户导入模板
export function importTemplate() {
  return request({
    url: '/dgw/registration/importTemplate',
    method: 'get'
  })
}


// 村
export function listQueryVillage(query) {
  return request({
    url: '/dgw/registration/queryVillage',
    method: 'get',
    params: query
  })
}

export function listQueryVillageUser(query) {
  return request({
    url: '/dgw/registration/queryUser',
    method: 'get',
    params: query
  })
}

export function queryVSum(query) {
  return request({
    url: '/dgw/registration/queryVSum',
    method: 'get',
    params: query
  })
}

export function queryUserName(query) {
  return request({
    url: '/dgw/registration/queryUserName',
    method: 'get',
    params: query
  })
}
